﻿using Service.src.Model.Folw;
using Service.src.NW.Enum;
using Service.src.NW.Model.Folw;
using Service.src.NW.Processor.Core.Device.SerialPort;


namespace Service.src.NW.Processor.Core.Connector
{
    internal class ConnectorProcessor
    {
        internal static void Run(NodeProcessor nodeProcessor, NodeInputParam InputParam)
        {
            switch (nodeProcessor.nodeType)
            {
                case NodeTypeEnum.SERIAL_PORT:
                    SerialPortProcessor.Run(nodeProcessor, InputParam);
                    break;
                case NodeTypeEnum.DB_MY_SQL:
                    DatabaseProcessor.Run(nodeProcessor, InputParam);
                    break;
            }
        }
    }
}
